/*
 * Copyright (c) 2003-2005
 * XDoclet Team
 * All rights reserved.
 */
package org.xdoclet.plugin.hibernate;

import java.io.File;
import java.net.URL;

import org.generama.MetadataProvider;
import org.xdoclet.QDoxMetadataProvider;

/**
 * Abstract test case for all hibernate mapping testing. We create plugin here, and also
 * setup entity resolver for xmlunit parsers. We take entity resolver from hibernate,
 * so we can always be sure that we got correct DTD.
 *
 * @author Konstantin Pribluda ( ko5tik(at)codehaus(dot)org )
 */
public abstract class AbstractHibernateConfigTestCase extends AbstractHibernateTestCase {
    protected MetadataProvider createMetadataProvider() {
        URL reader = getResourceRelativeToThisPackage("subclass");
        return new QDoxMetadataProvider(new File(reader.getPath()));
    }
}